package com.glut.gultguy;

import com.glut.gultguy.utils.DateUtils;
import com.glut.gultguy.utils.SnowflakeIdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.glut.gultguy.mapper")
public class GultguyApplication {

    public static void main(String[] args) {
        SpringApplication.run(GultguyApplication.class, args);
    }

    @Bean
    public SnowflakeIdWorker createIdWorker(){
        return new SnowflakeIdWorker(0,0);
    }

    @Bean
    public DateUtils createDateUtils(){
        return new DateUtils();
    }
}
